addListener

Registers a gesture state listener on this GestureRecognizer. Registering state listeners using this function enables applications to receive notifications of gesture recognition.

Parameters

listener

The function to call when the event occurs.